package com.wcpdoc.exam.core.service.impl;

import com.wcpdoc.core.dao.BaseDao;
import com.wcpdoc.core.service.impl.BaseServiceImp;
import com.wcpdoc.exam.core.dao.MockExamQuestionDao;
import com.wcpdoc.exam.core.entity.MockExamQuestion;
import com.wcpdoc.exam.core.service.MockExamQuestionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 考试试题服务层实现
 *
 * v1.0 zhanghc 2017-05-26 14:23:38
 */
@Service
public class MockExamQuestionServiceImpl extends BaseServiceImp<MockExamQuestion> implements MockExamQuestionService {
	@Resource
	private MockExamQuestionDao mockExamQuestionDao;

	@Override
	@Resource(name = "mockExamQuestionDaoImpl")
	public void setDao(BaseDao<MockExamQuestion> dao) {
		super.dao = dao;
	}

	@Override
	public List<MockExamQuestion> getList(Integer examId) {
		return mockExamQuestionDao.getList(examId);
	}

	@Override
	public void clear(Integer examId) {
		mockExamQuestionDao.clear(examId);
	}

	@Override
	public List<MockExamQuestion> getQuestionList(Integer questionId) {
		return mockExamQuestionDao.getQuestionList(questionId);
	}

	@Override
	public List<Map<String, Object>> getListUser(String id) {
		return null;
	}
}
